<?php
  error_reporting(0);
  session_start();
  if($_SESSION["autenticado"]!=1 ||
     $_POST["id"] == ""){
    header("Location: index.php");
  }
  include_once("fachadaBD.php");
  $f = new fachadaBD();
  $f->anularOrden($_POST["id"]);
  $f->cerrar();
  header("Location: comprasRevisadas.php");
?>
